Button description ...


Properties


ClipImage

bool ClipImage

Gets/sets whether the image is clipped to the size of the control.


Font

int Font

Gets/sets the font used to display text on the button.


Graphic

int Graphic

Gets the currently displayed sprite number.


MouseOverGraphic

int MouseOverGraphic

Gets/sets the image that is shown when the player moves the mouse over the button (-1 if none)


NormalGraphic

int NormalGraphic

Gets/sets the image that is shown when the button is not pressed or mouse-overed


PushedGraphic

int PushedGraphic

Gets/sets the image that is shown when the button is pressed


Text

string Text

Gets/sets the text to be drawn on the button.


TextColor

int TextColor

Gets/sets the colour in which the button text is drawn.


Methods


Animate

void Animate(int view, int loop, int delay, RepeatStyle repeatStyle)

Animates the button graphic using the specified view loop.